using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace InventorySystem
{
    public class EnemyItemDrop : MonoBehaviour
    {
        public int ItemCount;
        private GameItemSpawnerController GISC;

        private void OnEnable()
        {
            GISC = GetComponent<GameItemSpawnerController>();
        }

        private void OnDisable()
        {
            for (int i = 0; i < ItemCount; i++) 
            {
                GISC.OpenBox();
            }
        }

    }
}